From: Wei Liu Date: Wed, 1 Mar 2017 10:24:55 +0000 (+0000) Subject: xl: lift logfile declaration to xl.h X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2594 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=098dedd9316597f813773740f6a2ada89b7a36e4;p=xen.git xl: lift logfile declaration to xl.h No functional change. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- diff --git a/tools/xl/xl.h b/tools/xl/xl.h index 3869776395..1ad07261f2 100644 --- a/tools/xl/xl.h +++ b/tools/xl/xl.h @@ -218,6 +218,7 @@ struct cmd_spec *cmdtable_lookup(const char *s); extern libxl_ctx *ctx; extern xentoollog_logger_stdiostream *logger; +extern int logfile; void xl_ctx_alloc(void); diff --git a/tools/xl/xl_utils.c b/tools/xl/xl_utils.c index f79f08029f..4503ac7ea0 100644 --- a/tools/xl/xl_utils.c +++ b/tools/xl/xl_utils.c @@ -27,8 +27,6 @@ #include "xl.h" #include "xl_utils.h" -extern int logfile; - void dolog(const char *file, int line, const char *func, char *fmt, ...) { va_list ap; diff --git a/tools/xl/xl_vmcontrol.c b/tools/xl/xl_vmcontrol.c index 81a9af7705..0ad6e0bcbb 100644 --- a/tools/xl/xl_vmcontrol.c +++ b/tools/xl/xl_vmcontrol.c @@ -30,8 +30,6 @@ #include "xl_utils.h" #include "xl_parse.h" -extern int logfile; - static int fd_lock = -1; static void pause_domain(uint32_t domid)